package com.ls.lserp.modules.setting.dao;


import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.setting.entity.CheckProjectEntity;
import com.ls.lserp.modules.setting.entity.OperatingEntity;
import com.ls.lserp.modules.setting.entity.OperatingRREntity;

import java.util.List;

@MyBatisDao
public interface CheckProjectDao extends CrudDao<CheckProjectEntity>{
	// 款式设计LIst
	public List<CheckProjectEntity> selectValueNameCnListOne();
	// 辅料List
	public List<CheckProjectEntity> selectValueNameCnListTwo();
	// 标牌位置
	public List<CheckProjectEntity> selectValueNameCnListFour();
	// 刺绣
	public List<CheckProjectEntity> selectValueNameCnListFive();
	// 配料
	public List<CheckProjectEntity> selectValueNameCnListSix();
	// 量体
	public List<CheckProjectEntity> selectValueNameCnListSeven();
	// 工序list
	public List<OperatingEntity> selectValueNameCn();
	// 关联表数据查询
	public List<OperatingRREntity> selectOpId(CheckProjectEntity checkProjectEntity);
	// 关联表数据查询（量体）
	public List<CheckProjectEntity> selectOpFitId(CheckProjectEntity checkProjectEntity);
	// 插入关联表数据
	public void insertOperating(CheckProjectEntity checkProjectEntity);
	// 插入关联表数据（量体）
	public void insertOperatingFit(CheckProjectEntity checkProjectEntity);
	// 删除工序对应的项目（关联表）
	public void deleteOperating(CheckProjectEntity checkProjectEntity);
	// 删除工序对应的项目（关联表）（量体）
	public void deleteOperatingFit(CheckProjectEntity checkProjectEntity);
	// 获取工序最小ID
	public String getOperatingMinId();
	// 获取当前工序下的所有项目数据
	public List<OperatingRREntity> findItemList(Long operatingId);
	// 更新工序design关联表sort
	public void updateDesignR(OperatingRREntity operatingREntity);
	// 更新工序fit关联表sort
	public void updateFitR(OperatingRREntity operatingREntity);
	
}